package com.zzyl.nursing.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.annotation.Excel;
import com.zzyl.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaskVo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "主键")
    private Long id;

    @Excel(name = "年龄")
    private Integer age;

    @Excel(name = "床位号")
    private String bedNumber;

    @Excel(name = "取消原因")
    private String cancelReason;

    @Excel(name = "老人ID")
    private Long elderId;

    @Excel(name = "老人姓名")
    private String elderName;

    @Excel(name = "期望服务时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime;

    @Excel(name = "执行记录")
    private String mark;

    @Excel(name = "护理员ID")
    private String nursingId;

    @Excel(name = "护理等级名称")
    private String nursingLevelName;

    @Excel(name = "护理员姓名列表")
    @TableField(exist = false)
    private List<String> nursingName;

    @Excel(name = "护理项目ID")
    private Integer projectId;

    @Excel(name = "护理项目名称")
    private String projectName;

    @Excel(name = "实际服务时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime realServerTime;

    @Excel(name = "备注")
    private String remark;

    @Excel(name = "性别")
    private String sex;

    @Excel(name = "状态")
    private Integer status;

    @Excel(name = "执行图片")
    private String taskImage;

    @Excel(name = "执行人")
    private String updater;

}
